package com.lcf.order.config;

import feign.Feign;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

/**
 * Created by lancf on 2019/7/18.
 */
@Configuration
public class Configuration2 {

    //Configuration2里面加上这个就禁用了UserFeignClient2的Hystrix
//    @Bean
//    @Scope("prototype")
//    public Feign.Builder feignBuilder() {
//        //feignBuilder方法默认返回HystrixFeign.Builder也就是说Feign默认支持Hystrix
//        //现在改成Feign.Builder就禁用了Hystrix的支持
//        return Feign.builder();
//    }
}

